from django import forms


class AddProductForm(forms.Form):

    """ Форма для добавления продукта """

    CHOSING_NUMBER_PRODUCTS = [(number, str(number)) for number in range(1, 21)]
    quantity = forms.TypedChoiceField(choices=CHOSING_NUMBER_PRODUCTS, coerce=int)
    update_cart = forms.BooleanField(required=False, initial=False, widget=forms.HiddenInput)
